﻿@model MilageMVC.Models.Vehicle

@{
    ViewBag.Title = "Index";
}

<h2>Mileage Log for @Model.Make @Model.Name @Model.Year</h2>
<h3>Mileage average of @ViewBag.Mileage @ViewBag.Units</h3>
<h4>USMPG is   @ViewBag.USMPG,   Imperial MPG is  @ViewBag.UKMPG</h4>

@Html.Partial("_Mileages", @Model.Mileages)

<p>
   
    @Html.ActionLink("Create New", "CreateByVehicle", "Mileages" , new { id = Model.VehicleID }, null)
</p>
